define(function(require, exports, module) {
	$('.orderCancel').click(function(e){
		if(!confirm('确定要取消该订单?')){
			return false;
		}
		var link = e.target;
		$.get(link.href,function(response){
			if(response.status == 0){
				alert('取消订单成功');
				location.reload();
			}else{
				alert('取消订单失败');
			}
		});
		return false;
	});
});